package com.project.bean.staticProxy;

public class MissDen implements IEat{
    private final IEat target;
    //聚合目标对象
    public MissDen(IEat target){
        this.target=target;
    }
    @Override
    public void eat() {
        System.out.println("订餐");
        //调用 目标方法
        target.eat();
        System.out.println("开发票");
    }

}
